package com.zrzhen.springbootdemo.common.util.json;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Collection;
import java.util.Map;

/**
 * cal
 */
public class JsonUtil {

    private static Logger LOGGER = LoggerFactory.getLogger(JsonUtil.class);

    public static String map2Json(Map<String, Object> map) {
        return PpJson.map2Json(map);
    }

    public static String array2Json(Object array) {
        return PpJson.array2Json(array);
    }

    public static String coll2Json(Collection<?> coll) {
        return PpJson.coll2Json(coll);
    }

    public static String pojo2Json(Object obj) {
        return PpJson.pojo2Json(obj);
    }

}
